filterIsInstance

inline fun <R> filterIsInstance(): Option<R>

Returns the same Some casted to type R if it is R. Otherwise returns a None.

Return

The same Some casted to type R if it is R. Otherwise returns a None.

Parameters

R

Required type of the optional value.